{% extends "base.html" %}
{% block title %}增加学生信息{% endblock %}
{% block styles %}
    {{ super() }}

{% endblock %}
{% block page_content %}
    {{ super() }}
    <form action="/student/add" method="post" class="form-horizontal col-sm-offset-3 col-md-offset-3">
        <div class="col-sm-9 col-md-9">
            <div class="form-group">
                {{ form.name.label }}
                {% for msg in form.name.errors %}<small class="errors">{{ msg }}</small><br>{% endfor %}
                {{ form.name() }}
            </div>
            <div class="form-group">
                {{ form.gender.label }}
                {% for msg in form.gender.errors %}<small class="errors">{{ msg }}</small><br>{% endfor %}
                {{ form.gender() }}
            </div>
            <div class="form-group">
                {{ form.class_name.label }}
                {% for msg in form.class_name.errors %}<small class="errors">{{ msg }}</small><br>{% endfor %}
                {{ form.class_name() }}
            </div>
            <div class="form-group">
                {{ form.submit() }}
            </div>
        </div>
    </form>
{% endblock %}
